package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * SKU商品对象 tb_sku
 * 
 * @author ruoyi
 * @date 2022-06-01
 */
public class TbSku extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 商品条码 */
    @Excel(name = "商品条码")
    private String sn;

    /** SKU名称 */
    @Excel(name = "SKU名称")
    private String name;

    /** 价格（分） */
    @Excel(name = "价格", readConverterExp = "分=")
    private BigDecimal price;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer num;

    /** 库存预警数量 */
    @Excel(name = "库存预警数量")
    private Integer alertNum;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String image;

    /** 商品图片列表 */
    @Excel(name = "商品图片列表")
    private String images;

    /** 重量（克） */
    @Excel(name = "重量", readConverterExp = "克=")
    private Integer weight;

    /** SPUID */
    private Integer spuId;

    /** 类目ID */
    private Integer categoryId;

    /** 类目名称 */
    @Excel(name = "类目名称")
    private String categoryName;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private String brandName;

    /** 规格 */
    @Excel(name = "规格")
    private String spec;

    /** 销量 */
    @Excel(name = "销量")
    private Integer saleNum;

    /** 评论数 */
    @Excel(name = "评论数")
    private Integer commentNum;

    /** 商品状态 1-正常，2-下架，3-删除 */
    @Excel(name = "商品状态 1-正常，2-下架，3-删除")
    private Integer status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }
    public void setAlertNum(Integer alertNum) 
    {
        this.alertNum = alertNum;
    }

    public Integer getAlertNum() 
    {
        return alertNum;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }
    public void setWeight(Integer weight) 
    {
        this.weight = weight;
    }

    public Integer getWeight() 
    {
        return weight;
    }
    public void setSpuId(Integer spuId) 
    {
        this.spuId = spuId;
    }

    public Integer getSpuId() 
    {
        return spuId;
    }
    public void setCategoryId(Integer categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Integer getCategoryId() 
    {
        return categoryId;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setSaleNum(Integer saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Integer getSaleNum() 
    {
        return saleNum;
    }
    public void setCommentNum(Integer commentNum) 
    {
        this.commentNum = commentNum;
    }

    public Integer getCommentNum() 
    {
        return commentNum;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("name", getName())
            .append("price", getPrice())
            .append("num", getNum())
            .append("alertNum", getAlertNum())
            .append("image", getImage())
            .append("images", getImages())
            .append("weight", getWeight())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("spuId", getSpuId())
            .append("categoryId", getCategoryId())
            .append("categoryName", getCategoryName())
            .append("brandName", getBrandName())
            .append("spec", getSpec())
            .append("saleNum", getSaleNum())
            .append("commentNum", getCommentNum())
            .append("status", getStatus())
            .toString();
    }
}
